<?xml version="1.0" encoding="ISO-8859-1" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:p="http://primefaces.org/ui"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:fn="http://java.sun.com/jsp/jstl/functions">
<h:head>
	<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />

	<title>Cadastro de Turma</title>
</h:head>
<h:body>
<h:form id="busca">
	<p:panelGrid columns="2">
	<f:facet name="header"> Tela de busca </f:facet>
	
	
	<h:outputText value="Turma" styleClass="labelFormulario" size="30" />
			<p:selectOneMenu id="selectTurma" value="#{turmaBean.turmaId}" required="true">

				<f:selectItem itemLabel="-- Selecione --" noSelectionOption="true" />
				<f:selectItems value="#{turmaBean.lista}" var="modelo"
					itemValue="#{modelo.id}" itemLabel="#{modelo.descricao}" />
			</p:selectOneMenu>
			<br />
			
			<p:commandButton ajax="false" action="#{turmaBean.buscar}" value="Buscar Turma" />

	</p:panelGrid>
</h:form>
</h:body>
</html>